/*
 * Created by LiuYou on 2020/8/19.
 *
 */

#ifndef CPPFROMMYCTEACHERBOOK_GRAPHICSCARD_HPP
#define CPPFROMMYCTEACHERBOOK_GRAPHICSCARD_HPP


#include "Object.hpp"

namespace ly {
    class GraphicsCard : public Object {
    private:
        int lifetime{4};
        int speed{10000};
    public:
        std::string toString() const override {
            return "GraphicsCard{lifetime=" + std::to_string(lifetime) +
                   ", speed=" + std::to_string(speed) +
                   "}";
        }

        virtual ~GraphicsCard() = default;

        GraphicsCard(int lifetime, int speed) : lifetime(lifetime), speed(speed) {}

        GraphicsCard() = default;

    };

}


#endif //CPPFROMMYCTEACHERBOOK_GRAPHICSCARD_HPP
